<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<script type="text/javascript">
	dojo.require("dijit.Tooltip");
</script>
<form:form commandName="role" method="post">
	<form:errors path="*" cssClass="errorBox" />
	<form:label path="codRuolo" >codRuolo</form:label>
	<c:choose>
		<c:when test="${codRuolo=='' || empty codRuolo}">
			<form:input path="codRuolo" id="codRuolo" size="8" maxlength="20"/>
		</c:when>	
		<c:otherwise>
			<c:out value="${role.codRuolo}"/>
		</c:otherwise>
	</c:choose>
	
	
	<br/>
	<form:label path="descrRuolo" >Descrizione</form:label>
	<form:input path="descrRuolo" id="descrRuolo" size="25" maxlength="20"/>
	<br/>
	
	<input type="submit" value="Salva"/>
	</form:form>
